﻿<%@ Page Title="创建简历" Language="C#" MasterPageFile="~/resumemanager/resume.master" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Import Namespace="TalentPools.Model" %>
<%@ Import Namespace="TalentPools.BLL" %>
<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["userid"] == null)
            {
                Response.Redirect("~/Default.aspx");
            }
            int num = new checkresumeManager().getcountByname(Session["userid"].ToString());
            if (num>=5)
            {
                WebManager.BasePage.JsWindows("你已经有了5份简历", "checkmyresume.aspx");
            }
            this.txtbir.Attributes.Add("ReadOnly", "true");
            this.txtendtime.Attributes.Add("ReadOnly", "true");
            this.txtbegintime.Attributes.Add("ReadOnly", "true");
            this.txtrebegintime.Attributes.Add("ReadOnly", "true");
            this.txtreendtime.Attributes.Add("ReadOnly", "true");
            cblNengli.DataSource = new baseConfigManager().getconfigInfo("技能");
            cblNengli.DataTextField = "value";
            cblNengli.DataValueField = "value";
            cblNengli.DataBind();
            
            ddlPro.DataSource = new baseConfigManager().getconfigInfo("职位");
            ddlPro.DataTextField = "value";
            ddlPro.DataValueField = "value";
            ddlPro.DataBind();
            
            ddlWorkYear.DataSource = new baseConfigManager().getconfigInfo("工作时间");
            ddlWorkYear.DataTextField = "value";
            ddlWorkYear.DataValueField = "value";
            ddlWorkYear.DataBind();

            ddlMarState.DataSource = new baseConfigManager().getconfigInfo("婚姻状态");
            ddlMarState.DataTextField = "value";
            ddlMarState.DataValueField = "value";
            ddlMarState.DataBind();

            ddlpoli.DataSource = new baseConfigManager().getconfigInfo("政治面貌");
            ddlpoli.DataTextField = "value";
            ddlpoli.DataValueField = "value";
            ddlpoli.DataBind();

            ddlCurrentState.DataSource = new baseConfigManager().getconfigInfo("目前状态");
            ddlCurrentState.DataTextField = "value";
            ddlCurrentState.DataValueField = "value";
            ddlCurrentState.DataBind();

            ddlsalary.DataSource = new baseConfigManager().getconfigInfo("薪资");
            ddlsalary.DataTextField = "value";
            ddlsalary.DataValueField = "value";
            ddlsalary.DataBind();

            ddlJobCatagory.DataSource = new baseConfigManager().getconfigInfo("工作性质");
            ddlJobCatagory.DataTextField = "value";
            ddlJobCatagory.DataValueField = "value";
            ddlJobCatagory.DataBind();
        }
    }
    protected void btnsubmit_Click(object sender, ImageClickEventArgs e)
    {
        if (IsValid == true)
        {
            //构造简历对象
            resume resume = new resume();
            resume.resumeName = txtresumeName.Text.Trim();
            resume.userId = Session["userid"].ToString();
            resume.name = txtname.Text.Trim();
            resume.sex = rbnan.Checked ? "男" : "女";
            resume.birthday = Convert.ToDateTime(txtbir.Text);
            resume.marriage = ddlMarState.SelectedValue.ToString();
            resume.card = txtcard.Text.Trim();
            resume.politicsStatus = ddlpoli.SelectedValue.ToString();
            resume.HKPlace = txtpalce.Text.Trim();
            resume.city = txtcity.Text.Trim();
            resume.currentAddress = txtaddre.Text.Trim();
            resume.zipCode = txtcode.Text.Trim();
            resume.cellphone = txtmobile.Text.Trim();
            resume.phoneCode = txtphone.Text.Trim();
            resume.email = txtemail.Text.Trim();
            resume.homePage = txtindex.Text.Trim();
            resume.workYear = ddlWorkYear.SelectedValue.ToString();
            if (cbPublic.Checked)
            {
                resume.isPublic = true;
            }
            else
            {
                resume.isPublic = false;
            }
            resume.createTime = DateTime.Now;
            ViewState["createTime"] = resume.createTime;
            resume.lastUpdateTime = DateTime.Now;
            if (new CreateresumeManager().insertresumeInfo(resume))
            {
                //获取简历编号
                ViewState["resumeId"] = new CreateresumeManager().GetResumeId(Session["userid"].ToString(), Convert.ToDateTime(ViewState["createTime"]));
                if (resume.isPublic == true)//如果这份简历公开，则其他简历不公开
                {
                    string msg = new CreateresumeManager().SetResumeState(Session["userid"].ToString(), ViewState["resumeId"].ToString());
                    if (msg != "")
                    {
                        Page.ClientScript.RegisterClientScriptBlock(typeof(string), "", "alert(" + msg + ")");
                    }
                }
                ClientScript.RegisterStartupScript(typeof(string), "myscript", "<scr" + "ipt" + ">next1();</sc" + "ript>");
            }
        }
    }
    protected void btnsave_Click(object sender, ImageClickEventArgs e)
    {
        custom cus = new custom();
        cus.content = txtzicon.Text.ToString();
        cus.resumeId = new CreateresumeManager().getresumeId(Session["userid"].ToString());
        cus.tittle = txtzitittle.Text.ToString();
        new CreateresumeManager().createCustom(cus);
    }

    protected void imbtnnext_Click(object sender, ImageClickEventArgs e)
    {
        intention inte = new intention();
        inte.jobCategory = ddlJobCatagory.SelectedValue.ToString();
        inte.pay = ddlsalary.SelectedValue.ToString();
        inte.resumeId = new CreateresumeManager().getresumeId(Session["userid"].ToString());
        inte.state = ddlCurrentState.SelectedValue.ToString();
        inte.industry = txthang.Text.ToString();
        inte.profession = ddlPro.SelectedValue.ToString();
        inte.area = txtjobarea1.Text.ToString();
        new CreateresumeManager().createIntention(inte);
        ClientScript.RegisterStartupScript(typeof(string), "myscript", "<scr" + "ipt" + ">next2();</sc" + "ript>");
    }

    protected void imgbtnmynext_Click(object sender, ImageClickEventArgs e)
    {
        training tr = new training();
        tr.tittle = txttittle.Text.ToString();
        tr.beginTime = Convert.ToDateTime(txtbegintime.Text.ToString());
        tr.endTime = Convert.ToDateTime(txtendtime.Text.ToString());
        tr.result = txtresult.Text.ToString();
        tr.details = txtdetail.Text.ToString();
        tr.resumeId = new CreateresumeManager().getresumeId(Session["userid"].ToString());
        new CreateresumeManager().createTraning(tr);
        ClientScript.RegisterStartupScript(typeof(string), "myscript", "<scr" + "ipt" + ">next3();</sc" + "ript>");
    }

    protected void imgbtnnext_Click(object sender, ImageClickEventArgs e)
    {
        record re = new record();
        re.resumeId = new CreateresumeManager().getresumeId(Session["userid"].ToString());
        re.title = txtrename.Text.ToString();
        re.beginTime = Convert.ToDateTime(txtrebegintime.Text.ToString());
        re.endTime = Convert.ToDateTime(txtendtime.Text.ToString());
        re.content = txtrecon.Text.ToString();
        re.details = txtredetails.Text.ToString();
        new CreateresumeManager().creatRecord(re);
        ClientScript.RegisterStartupScript(typeof(string), "myscript", "<scr" + "ipt" + ">next4();</sc" + "ript>");
    }

    protected void lbtnContinueTran_Click(object sender, EventArgs e)
    {
        training tr = new training();
        tr.tittle = txttittle.Text.ToString();
        tr.beginTime = Convert.ToDateTime(txtbegintime.Text.ToString());
        tr.endTime = Convert.ToDateTime(txtendtime.Text.ToString());
        tr.result = txtresult.Text.ToString();
        tr.details = txtdetail.Text.ToString();
        tr.resumeId = new CreateresumeManager().getresumeId(Session["userid"].ToString());
        new CreateresumeManager().createTraning(tr);
        txttittle.Text = "";
        txtbegintime.Text = "";
        txtendtime.Text = "";
        txtresult.Text = "";
        txtdetail.Text = "";
        dlTrainning.DataSource = new CreateresumeManager().GetTraining(ViewState["resumeId"].ToString());
        dlTrainning.DataBind();
    }

    protected void lbtnContinueWorkRecord_Click(object sender, EventArgs e)
    {
        record re = new record();
        re.resumeId = new CreateresumeManager().getresumeId(Session["userid"].ToString());
        re.title = txtrename.Text.ToString();
        re.beginTime = Convert.ToDateTime(txtrebegintime.Text.ToString());
        re.endTime = Convert.ToDateTime(txtendtime.Text.ToString());
        re.content = txtrecon.Text.ToString();
        re.details = txtredetails.Text.ToString();
        new CreateresumeManager().creatRecord(re);
        txtrename.Text = "";
        txtrebegintime.Text = "";
        txtreendtime.Text = "";
        txtredetails.Text = "";
        dlWork.DataSource = new CreateresumeManager().GetTraining(ViewState["resumeId"].ToString());
        dlWork.DataBind();
    }

    protected void lbtnContinueCustom_Click(object sender, EventArgs e)
    {
        custom cus = new custom();
        cus.content = txtzicon.Text.ToString();
        cus.resumeId = new CreateresumeManager().getresumeId(Session["userid"].ToString());
        cus.tittle = txtzitittle.Text.ToString();
        new CreateresumeManager().createCustom(cus);
        txtzicon.Text = "";
        txtzitittle.Text = "";
        dlCustom.DataSource = new CreateresumeManager().GetTraining(ViewState["resumeId"].ToString());
        dlCustom.DataBind();
    }

    protected void lbtnHulue_Click(object sender, EventArgs e)
    {
        ClientScript.RegisterStartupScript(typeof(string), "myscript", "<scr" + "ipt" + ">next3();</sc" + "ript>");
    }

    protected void lbtnHulue1_Click(object sender, EventArgs e)
    {
        ClientScript.RegisterStartupScript(typeof(string), "myscript", "<scr" + "ipt" + ">next4();</sc" + "ript>");

    }

    protected void ibtnSkill_Click(object sender, ImageClickEventArgs e)
    {
        string skillStr = "";
        foreach (ListItem item in cblNengli.Items)
        {
            if (item.Selected)
            {
                if (skillStr=="")
                {
                    skillStr += item.Text;
                }
                else
                {
                    skillStr += "," + item.Text;
                }
            }
        }
        Skill skill = new Skill();
        skill.Name = skillStr;
        skill.resumeId = ViewState["resumeId"].ToString();
        if (new SkillManager().InsertSkill(skill))
        {
            ClientScript.RegisterStartupScript(typeof(string), "myscript", "<scr" + "ipt" + ">next5();</sc" + "ript>"); 
        }
        
    }
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="../js/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../js/eye-all.js" type="text/javascript"></script>
    <link href="../JQueryui/css/ui-lightness/jquery-ui-1.8.16.custom.css" rel="stylesheet"
        type="text/css" />
    <script src="../JQueryui/js/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
    <script src="../js/datetime.js" type="text/javascript"></script>
    <script src="../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        var isvia;
        function next1() {
            $("#tabs").tabs({ selected: 1 });
            isvia = "1";
        }
        function next2() {
            $("#tabs").tabs({ selected: 2 });
            isvia = "1";
        }
        function next3() {
            $("#tabs").tabs({ selected: 3 });
            isvia = "1";
        }
        function next4() {
            $("#tabs").tabs({ selected: 4 });
            isvia = "1";
        }
        function next5() {
            $("#tabs").tabs({ selected: 5 });
            isvia = "1";
        }
        $(function () {
            $("#tabs").tabs();
            $("#tabs").tabs({
                select: function (event, ui) {
                    if (isvia != "1") {
                        return false;
                    }
                }
            });
            //上一步与下一步的选择
            $("#<%=btnsubmit.ClientID%>").click(function () {
                $("#tabs").tabs({ selected: 1 });
            });

            $("#<%=imgbtnmynext.ClientID%>").click(function () {
                if ($("#<%=txttittle.ClientID%>").val() == "" || $("#<%=txtbegintime.ClientID%>").val() == "" || $("#<%=txtbegintime.ClientID%>").val() == "" || $("#<%=txtendtime.ClientID%>").val() == "") {
                    return false;
                }
                else {
                    $("#tabs").tabs({ selected: 3 });
                }
            });

            $("#<%=imgbtnnext.ClientID%>").click(function () {
                if ($("#<%=txtrename.ClientID%>").val() == "" || $("#<%=txtrebegintime.ClientID%>").val() == "" || $("#<%=txtreendtime.ClientID%>").val() == "" || $("#<%=txtrecon.ClientID%>").val() == "" || $("#<%=txtredetails.ClientID %>").val() == "") {
                    return false;
                }
                else {
                    $("#tabs").tabs({ selected: 4 });
                }
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="sm1" runat="server">
    </asp:ScriptManager>
    <div id="tabs">
        <ul>
            <li><a href="#tab1">基本资料</a></li>
            <li><a href="#tab2">求职意向</a></li>
            <li><a href="#tab3">培训经历</a></li>
            <li><a href="#tab4">工作经历</a></li>
            <li><a href="#tab5">精通技能</a></li>
            <li><a href="#tab6">自定义内容</a> </li>
        </ul>
        <div id="tab1">
            <table class="tableMain">
                <tr>
                    <td class="titleStyle">
                        简历名称:
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtresumeName" runat="server" Style="margin-left: 0px" ValidationGroup="first"
                            BorderStyle="None" MaxLength="20" Width="195px"></asp:TextBox>
                    </td>
                    <td class="valStyle" style="width: 97px">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtresumeName"
                            ErrorMessage="*必填" Display="Dynamic" ValidationGroup="first"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        姓名:
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtname" runat="server" Style="margin-left: 0px" ValidationGroup="first"
                            BorderStyle="None" MaxLength="20" Width="195px"></asp:TextBox>
                    </td>
                    <td class="valStyle" style="width: 97px">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="txtname"
                            ErrorMessage="*必填" Display="Dynamic" ValidationGroup="first"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        性别:
                    </td>
                    <td class="textStyle">
                        <asp:RadioButton ID="rbnan" Text="男" GroupName="sex" Checked="true" runat="server" />
                        <asp:RadioButton ID="rbnv" Text="女" GroupName="sex" runat="server" />
                    </td>
                    <td class="valStyle">
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        出生日期:
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtbir" runat="server" ValidationGroup="first" BorderStyle="None"
                            Width="195px"></asp:TextBox>
                        <asp:CalendarExtender ID="CalendarExtender1" Format="yyyy-MM-dd" EndDate="2011-12-31"
                            StartDate="1950-1-1" SelectedDate="1980-1-1" TargetControlID="txtbir" runat="server">
                        </asp:CalendarExtender>
                    </td>
                    <td class="valStyle">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        工作时间：
                    </td>
                    <td class="textStyle">
                        <asp:DropDownList ID="ddlWorkYear" runat="server" Width="100px">
                        </asp:DropDownList>
                    </td>
                    <td class="valStyle">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        婚姻状态:
                    </td>
                    <td class="textStyle">
                        <asp:DropDownList ID="ddlMarState" runat="server" Width="195px">
                        </asp:DropDownList>
                    </td>
                    <td class="valStyle">
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        身份证号：
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtcard" runat="server" ValidationGroup="first" BorderStyle="None"
                            Width="195px"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtcard"
                            Display="Dynamic" ErrorMessage="格式错误" Font-Size="12px" ValidationExpression="\d{17}[\d|X]|\d{15}"
                            ValidationGroup="first"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        政治面貌：
                    </td>
                    <td class="textStyle">
                        <asp:DropDownList ID="ddlpoli" runat="server" Width="195px">
                        </asp:DropDownList>
                    </td>
                    <td class="valStyle">
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        户口所在地：
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtpalce" runat="server" ValidationGroup="first" BorderStyle="None"
                            Width="195px"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        现居住城市：
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtcity" runat="server" ValidationGroup="first" BorderStyle="None"
                            Width="195px"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        通信地址：
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtaddre" runat="server" ValidationGroup="first" BorderStyle="None"
                            Width="195px"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        邮政编码：
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtcode" runat="server" ValidationGroup="first" BorderStyle="None"
                            Width="195px"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        手机：
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtmobile" runat="server" ValidationGroup="first" BorderStyle="None"
                            Width="195px"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        电话：
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtphone" runat="server" BorderStyle="None" Width="195px"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        电子邮件：
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtemail" runat="server" ValidationGroup="first" BorderStyle="None"
                            Width="195px"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        个人主页：
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtindex" runat="server" BorderStyle="None" Width="195px" Wrap="False"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:ImageButton ID="btnsubmit" runat="server" ImageUrl="~/img/nextstep.gif" OnClick="btnsubmit_Click"
                            ValidationGroup="first" /><br />
                        <span style="margin-right: 0px; padding: 0px; text-align: right;">
                            <asp:CheckBox ID="cbPublic" Text="公开简历" runat="server" /><span style="font: 10px;
                                color: #666;"> &nbsp;注意：只能公开一份简历 </span></span>
                    </td>
                </tr>
            </table>
        </div>
        <div id="tab2">
            <table class="tableMain">
                <tr>
                    <td class="titleStyle">
                        求职类型:
                    </td>
                    <td class="textStyle">
                        <asp:DropDownList ID="ddlJobCatagory" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        工作地点:
                    </td>
                    <td class="textStyle">
                        <div style="display: none">
                            <asp:TextBox ID="txtjobarea1" runat="server" BorderStyle="None" Width="195px"></asp:TextBox></div>
                        <asp:TextBox ID="txtjobarea" runat="server" ValidationGroup="secod" BorderStyle="None"
                            Width="195px"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        职业:
                    </td>
                    <td class="textStyle">
                    <asp:DropDownList ID="ddlPro" runat="server" Width="195px"></asp:DropDownList>
                            
                    </td>
                    <td class="valStyle">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        行业:
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txthang" runat="server" ValidationGroup="secod" BorderStyle="None"
                            Width="195px"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        薪资:
                    </td>
                    <td class="textStyle">
                        <asp:DropDownList ID="ddlsalary" runat="server" Width="100px">
                        </asp:DropDownList>
                        (元)/月
                    </td>
                    <td class="valStyle">
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        目前状态:
                    </td>
                    <td class="textStyle">
                        <asp:DropDownList ID="ddlCurrentState" runat="server" Width="195px">
                        </asp:DropDownList>
                    </td>
                    <td class="valStyle">
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:ImageButton ID="imbtnnext" runat="server" ImageUrl="~/img/create.gif" OnClick="imbtnnext_Click"
                            ValidationGroup="secod" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="tab3">
            <div id="tranningList">
                <asp:DataList ID="dlTrainning" runat="server" CssClass="tranningList">
                    <HeaderTemplate>
                        <table class="tableMain" style="width: 100%">
                            <tr>
                                <td class="titleStyle" style="text-align: center; width: 20%;">
                                    名称
                                </td>
                                <td class="valStyle" style="text-align: center; width: 20%;">
                                    开始时间-结束时间
                                </td>
                                <td class="textStyle" style="text-align: center; width: 45%;">
                                    证书
                                </td>
                                <td class="editStyle" style="width: 15%">
                                </td>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td class="titleStyle" style="text-align: center; width: 20%;">
                                <%#Eval("tittle") %>
                            </td>
                            <td class="valStyle" style="text-align: center; width: 20%;">
                                <%#Eval("beginTime","yyyy月MM") %>—<%#Eval("endTime","yyyy年MM月") %></td>
                            <td class="textStyle" style="text-align: center; width: 45%;">
                                <%#Eval("result") %>
                            </td>
                            <td class="editStyle" style="width: 15%">
                                <asp:LinkButton ID="lbtnEdit" runat="server" Text="编辑"></asp:LinkButton>
                                <asp:LinkButton ID="lbtnDel" runat="server" Text="删除"></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:DataList>
            </div>
            <span style="font-size: 12px; color: Red;">如果你没有参加过培训可以不填</span>
            <table class="tableMain">
                <tr>
                    <td class="titleStyle">
                        名称:
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txttittle" runat="server" ValidationGroup="three" BorderStyle="None"
                            Width="195px"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ControlToValidate="txttittle"
                            ErrorMessage="*必填" ValidationGroup="three" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        开始时间:
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtbegintime" runat="server" BorderStyle="None" Width="195px" Style="margin-bottom: 0px" ValidationGroup="three"></asp:TextBox>
                        <asp:CalendarExtender ID="CalendarExtender2" TargetControlID="txtbegintime" runat="server">
                        </asp:CalendarExtender>
                    
                    </td>
                    <td class="valStyle">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="txtbegintime"
                            ErrorMessage="*必填" ValidationGroup="three" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        截止时间:
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtendtime" runat="server" Width="195px" ValidationGroup="three" CssClass="Wdate"
                            BorderStyle="None"></asp:TextBox>
                        <asp:CalendarExtender ID="CalendarExtender3" TargetControlID="txtendtime" runat="server">
                        </asp:CalendarExtender>
                    </td>
                    <td class="valStyle">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ControlToValidate="txtendtime"
                            ErrorMessage="*必填" ValidationGroup="three" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        获得证书:
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtresult" runat="server" ValidationGroup="three" BorderStyle="None"
                            Width="195px"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        详细描述:
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtdetail" runat="server" ValidationGroup="three" BorderStyle="None"
                            Width="195px"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:ImageButton ID="imgbtnmynext" runat="server" ImageUrl="~/img/create.gif" OnClick="imgbtnmynext_Click"
                            ValidationGroup="three" />
                        <asp:LinkButton ID="lbtnContinueTran" runat="server" OnClick="lbtnContinueTran_Click">继续添加培训经历</asp:LinkButton>
                        &nbsp;
                        <asp:LinkButton ID="lbtnHulue" runat="server" onclick="lbtnHulue_Click">忽略</asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
        <div id="tab4">
            <div id="workRecord">
                <asp:DataList ID="dlWork" runat="server" CssClass="tranningList">
                    <HeaderTemplate>
                        <table class="tableMain" style="width: 100%">
                            <tr>
                                <td class="titleStyle" style="text-align: center; width: 20%;">
                                    名称
                                </td>
                                <td class="valStyle" style="text-align: center; width: 20%;">
                                    开始时间—结束时间
                                </td>
                                <td class="textStyle" style="text-align: center; width: 45%;">
                                    内容
                                </td>
                                <td class="editStyle" style="width: 15%">
                                </td>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td class="titleStyle" style="text-align: center; width: 20%;">
                                <%#Eval("title") %>
                            </td>
                            <td class="valStyle" style="text-align: center; width: 20%;">
                                <%#Eval("beginTime","yyyy年MM月") %>—<%#Eval("endTime","yyyy年MM月") %></td>
                            <td class="textStyle" style="text-align: center; width: 45%;">
                                <%#Eval("content") %>
                            </td>
                            <td class="editStyle" style="width: 15%">
                                <asp:LinkButton ID="lbtnEdit" runat="server" Text="编辑"></asp:LinkButton>
                                <asp:LinkButton ID="lbtnDel" runat="server" Text="删除"></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:DataList>
            </div>
            <span style="font-size: 12px; color: Red;">如果你没有参加过工作可以不填</span>
            <table class="tableMain">
                <tr>
                    <td class="titleStyle">
                        名称:
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtrename" runat="server" ValidationGroup="four" BorderStyle="None"
                            Width="195px"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" ControlToValidate="txtrename"
                            ErrorMessage="*必填" ValidationGroup="four" Display="Dynamic"></asp:RequiredFieldValidator>
                    &nbsp;</td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        开始时间:
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtrebegintime" runat="server" CssClass="Wdate"  BorderStyle="None" Width="195px"></asp:TextBox>
                        <asp:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="txtrebegintime">
                        </asp:CalendarExtender>
                    </td>
                    <td class="valStyle">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" ControlToValidate="txtrebegintime"
                            ErrorMessage="*必填" ValidationGroup="four" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        结束时间:
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtreendtime" runat="server" CssClass="Wdate"  BorderStyle="None" Width="195px"></asp:TextBox>
                        <asp:CalendarExtender ID="CalendarExtender5" runat="server" TargetControlID="txtreendtime">
                        </asp:CalendarExtender>
                    </td>
                    <td class="valStyle">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator23" runat="server" ControlToValidate="txtreendtime"
                            ErrorMessage="*必填" ValidationGroup="four" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        工作内容:
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtrecon" runat="server" ValidationGroup="four" BorderStyle="None"
                            Width="195px" MaxLength="20"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        详细描述:
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtredetails" runat="server" ValidationGroup="four" BorderStyle="None"
                            Width="195px" Height="142px" MaxLength="500" TextMode="MultiLine"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:ImageButton ID="imgbtnnext" runat="server" ImageUrl="~/img/create.gif" OnClick="imgbtnnext_Click"
                            ValidationGroup="four" />
                        <asp:LinkButton ID="lbtnContinueWorkRecord" runat="server" OnClick="lbtnContinueWorkRecord_Click">保存并继续添加工作经历</asp:LinkButton>
                        &nbsp;
                        <asp:LinkButton ID="lbtnHulue1" runat="server" onclick="lbtnHulue1_Click">忽略</asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>

        
        <div id="tab5">
            <div id="Div2">
            </div>
            <table class="tableMain">
               
                <tr>
                    <td class="titleStyle">
                        精通技能：
                    </td>
                    <td class="textStyle" colspan="2">
                        <asp:CheckBoxList ID="cblNengli" runat="server" RepeatColumns="2" 
                            RepeatDirection="Horizontal">
                        </asp:CheckBoxList>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:ImageButton ID="ibtnSkill" runat="server" ImageUrl="~/img/create.gif"
                            ValidationGroup="five" onclick="ibtnSkill_Click" />
                       &nbsp;<a href="checkmyresume.aspx" target="_self">忽略</a></td>
                </tr>
            </table>
        </div>


        <div id="tab6">
            <div id="Div1">
                <asp:DataList ID="dlCustom" runat="server" CssClass="tranningList">
                    <HeaderTemplate>
                        <table class="tableMain" style="width: 70%">
                            <tr>
                                <td class="titleStyle" style="text-align: center; width: 70%;">
                                    标题
                                </td>
                                <td class="editStyle" style="width: 30%">
                                </td>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td class="titleStyle" style="text-align: center; width: 70%;">
                                <%#Eval("tittle") %>
                            </td>
                            <td class="editStyle" style="width: 30%">
                                <asp:LinkButton ID="lbtnEdit" runat="server" Text="编辑" CommandName="Edit"></asp:LinkButton>
                                <asp:LinkButton ID="lbtnDel" runat="server" Text="删除" CommandName="Delete"></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:DataList>
            </div>
            <table class="tableMain">
                <tr>
                    <td class="titleStyle">
                        标题：
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtzitittle" runat="server" ValidationGroup="six" BorderStyle="None"
                            Width="195px" MaxLength="50"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" ControlToValidate="txtzitittle"
                            ErrorMessage="*必填" ValidationGroup="six"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="titleStyle">
                        内容：
                    </td>
                    <td class="textStyle">
                        <asp:TextBox ID="txtzicon" runat="server" TextMode="MultiLine" Height="153px" Width="195px"
                            ValidationGroup="six" BorderStyle="None" MaxLength="3000"></asp:TextBox>
                    </td>
                    <td class="valStyle">
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:ImageButton ID="btnsave" runat="server" ImageUrl="~/img/create.gif" OnClick="btnsave_Click"
                            ValidationGroup="six" />
                        <asp:LinkButton ID="lbtnContinueCustom" runat="server" OnClick="lbtnContinueCustom_Click">保存并继续添加自定义内容</asp:LinkButton>
                    &nbsp;<a href="checkmyresume.aspx" target="_self">直接完成</a></td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
